<template>
  <view class="container" :style="{ backdropFilter: 'blur(10px)' }">
    <view class="login-box">
      <text class="title">登录</text>
      <view class="form-group">
        <input class="input" type="text" placeholder="用户名" />
      </view>
      <view class="form-group">
        <input class="input" type="password" placeholder="密码" />
      </view>
      <view class="form-group">
        <button class="login-button" @tap="login">登录</button>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  onLoad() {},
  methods: {
    login() {
      // 处理登录逻辑
      console.log("Login button tapped");
    },
  },
};
</script>

<style>
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('E:/360MoveData/Users/11500_oaio533/Desktop/img/bg.png') no-repeat center center;
  background-size: cover;
  filter: blur(10px);
}

.login-box {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}

.input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.login-button {
  background-color: #007aff;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
</style>
